import axios from './axios'

// 配货库存查询
export function getList(params){
  return axios({
    url:'/customerAllocationTotal/getList',
    params
  })
}

// 根据配货序号查询出配货明细2数据
export function getTwoInfoBySequence(params){
  return axios({
    url:'/customerAllocationTotal/getTwoInfoBySequence',
    params
  })
}

// 确认配货
export function affirmYes(params){
  return axios({
    method: 'put',
    url:'/customerAllocationTotal/affirmYes',
    params
  })
}

// 反确认配货
export function affirmNo(params){
  return axios({
    method: 'put',
    url:'/customerAllocationTotal/affirmNo',
    params
  })
}

// 删除 （没确认之前）
export function del(data){
  return axios({
    method: 'delete',
    url:'/customerAllocationTotal/delete',
    data
  })
}

// 开始配货  (每次只传一个货号数据)
export function startAllocation(params){
  return axios({
    method: 'post',
    url:'/customerAllocationTotal/startAllocation',
    params
  })
}

// 根据配货序号填写备注信息
export function updateRemark(params){
  return axios({
    method: 'put',
    url:'/customerAllocationTotal/updateRemark',
    params
  })
}

// 列印 （更改状态为已打印）
export function printConfirm(params){
  return axios({
    method: 'put',
    url:'/customerAllocationTotal/print',
    params
  })
}